package com.realestate.model;

import java.io.Serializable;
import javax.persistence.*;

import java.util.Date;
import java.util.Set;


/**
 * The persistent class for the brtb_province database table.
 * 
 */
@Entity
@Table(name="brtb_province")
public class BrtbProvince implements Serializable {
	private static final long serialVersionUID = 1L;

	private Long id;

	private Date makeDate;

	private String provinceCode;

	private String provinceName;

	private String recordStatus;

	private Set<BrtbDistrict> brtbDistricts;

    public BrtbProvince() {
    }

    @Id
	public Long getId() {
		return this.id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	@Column(name="make_date")
	public Date getMakeDate() {
		return this.makeDate;
	}

	public void setMakeDate(Date makeDate) {
		this.makeDate = makeDate;
	}

	@Column(name="province_code")
	public String getProvinceCode() {
		return this.provinceCode;
	}

	public void setProvinceCode(String provinceCode) {
		this.provinceCode = provinceCode;
	}

	@Column(name="province_name")
	public String getProvinceName() {
		return this.provinceName;
	}

	public void setProvinceName(String provinceName) {
		this.provinceName = provinceName;
	}

	@Column(name="record_status")
	public String getRecordStatus() {
		return this.recordStatus;
	}

	public void setRecordStatus(String recordStatus) {
		this.recordStatus = recordStatus;
	}

	@OneToMany(mappedBy="brtbProvince")
	public Set<BrtbDistrict> getBrtbDistricts() {
		return this.brtbDistricts;
	}

	public void setBrtbDistricts(Set<BrtbDistrict> brtbDistricts) {
		this.brtbDistricts = brtbDistricts;
	}
	
}